<template>
	<view>
		<view class="bg-fff radius20 mb20 p20 mt60 relative">
			<view class="flex" style="margin-top: -60rpx;">
				<image :src="data.avatar||''" class="h120 w120 radius" mode="aspectFill"></image>
				<view class="fs30 color-232323 fw-700 pl20 pt10">{{data.name}}</view>
			</view>
			<types :list="data.types" />
			</types>
			<view class="fs26 mt24">
				<text class="color-999">性别：</text>
				<text class="color-232323">{{$list('sex')[data.sex]}}</text>
				<text class="color-999 ml100 pl100">年龄：</text>
				<text class="color-232323">{{data.age}}</text>
			</view>
			<view class="fs26 mt20">
				<text class="color-999">护龄：</text>
				<text class="color-232323">{{data.service_year}}年</text>
				<text class="color-999 ml100 pl100">籍贯：</text>
				<text class="color-232323">{{data.native_place}}</text>
			</view>
			<image src="/static/img/index/doctor.png" class="absolute h212 w206 " style="right: -20rpx;top: -80rpx;"
				mode=""></image>
		</view>
		<view class="flex row-around bg-fff mb20 py22 radius20">
			<view class="text-center">
				<view class="color-zs fs36">{{data.num}}</view>
				<view class="color-666 mt12 fs26">
					陪诊次数
				</view>
			</view>
			<view class="text-center" v-if="0">
				<view class="color-fs fs36">
					95
				</view>
				<view class="color-666 mt12 fs26">
					机构评分
				</view>
			</view>
			<view class="text-center">
				<view class="color-fs fs36">{{data.good_rate}}</view>
				<view class="color-666 mt12 fs26">
					好评率
				</view>
			</view>
			<view class="text-center">
				<view class="color-232323 fs36">{{data.comment_num}}</view>
				<view class="color-666 mt12 fs26">
					评论数
				</view>
			</view>
		</view>
		<view class="bg-fff mb20 py22 radius20 px20">
			<view class="flex col-top">
				<view class="color-999 fs28 "> 陪诊医院：</view>
				<view class="fs26 flex1 color-232323 pl8 lh15">{{data.hospital}}</view>
			</view>
			<view class="flex col-top">
				<view class="color-999 fs28">陪诊项目：</view>
				<view class="fs26 flex1 color-232323 pl8 lh15">{{data.service}}</view>
			</view>
			<view class="flex col-top mt30">
				<view class="color-999 fs28">个人简介：</view>
				<view class="fs26 color-232323 flex1 pl8 lh15">{{data.profile}}</view>
			</view>
		</view>
		<view class="flex px20" v-if="data.is_show!=0">
			<view class="border-11CBC5 bg-fff flex row-center  flex1 h88  radius12" @click="$tool.phone(data.mobile)">
				<image src="/static/img/index/call.png" class="h42 w42" mode=""></image>
				<view class="fs28 color-232323 ml30">电话咨询</view>
			</view>
			<view class="border-46A6FE bg-fff flex row-center flex1 ml20 h88 radius12" v-if="$store.state.chat.isclose"
				@click="$goChat({to_id:data.id,to_identify:'master'})">
				<image src="/static/img/index/news.png" class="h42 w42" mode=""></image>
				<view class="fs28 color-232323 ml30">在线咨询</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "othD",
		props: {
			data: {
				default: ''
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">

</style>
